import httpUtil from '../httpUtil'

// 获取用户信息
export function getUserInfo (params: any) {
  return httpUtil.getAction(`/api/sysUser/${params.userId}`)
}

// 获取用户列表
export function getUserList (params: any) {
  return httpUtil.getAction(`/api/sysUser`)
}

// 编辑用户
export function editUser (params: any) {
  return httpUtil.putAction(`/api/sysUser`, params)
}

// 删除用户
export function deleteUser (params: any) {
  return httpUtil.getAction(`/api/sysUser/delete/${params.userId}`)
}